package cn.gson.boot.model.mapper;

import cn.gson.boot.model.pojos.Dingdan;
import cn.gson.boot.model.pojos.Hetong;
import cn.gson.boot.model.pojos.Hetongxiangqing;
import cn.gson.boot.model.pojos.Product;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DingDanMapper {
    //查询所有订单
    public List<Dingdan> selectAllDingDan(Dingdan dingdan);
    public List<Dingdan> selectAllDingDan2(@Param("ddHao") String ddHao,
                                           @Param("khName") String khName,
                                           @Param("time") String time,
                                           @Param("ddZt") String ddZt,
                                           @Param("empName") String empName);


    //交付计划：查看所有订单
    public List<Dingdan> jfjhSelectAllDingDan();

    //根据订单id获取订单(交付计划)
    public List<Dingdan> selectDDByDDid(Integer ddId);

    //根据合同查到此合同包含的订单
    public List<Dingdan> selectheBaoHangDeDingDan(Integer htId);

    //查看所有重复购买订单
    public List<Dingdan> ckcfgmDingDan(@Param("ddHao") String ddHao,
                                       @Param("khName") String khName,
                                       @Param("time") String time);


    //<!--发货：查看所有订单-->
    public List<Dingdan> fahuoSelectAllDingDan();

    //<!--发货：查看所有订单 换货-->
    public List<Dingdan> fahuoSelectAllDingDan2();


    //<!--退/换货：查看所有订单-->
    public List<Dingdan> tuiHuanHuoSelectAllDingDan();
    //=====维修工单
    //根据选择的客户查询客户所有的订单
    public List<Dingdan> ckdingdan(Integer kId);

    //回款  根据选择的客户查询客户所有的订单
    public List<Dingdan> huiKuanCkdingdan(Integer kId);


    //根据订单id查到订单信息
    public Dingdan ckDingDanByddId(Integer ddId);

    //根据订单id找到订单
    public Dingdan selectDingDanByddIdSh(Integer ddId);


    //退换货：查看所有(执行中)订单
    public List<Dingdan> tuihuanDDzxz(Integer kId);

    //{维修工单}根据选择的客户查询客户所有已完成的订单
    public List<Dingdan> wxgdSelectYwcDingDanBykId(Integer kId);

    //出库 ：查看所有订单(执行中的订单)换货 没有出库的
    public List<Dingdan> chuKuSelectAllDingDan();

    //根据合同id查找订单集合
    public List<Dingdan> ckDingDanListByhtId(Integer htId);

}
